﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="油管结算清单.aspx.cs" Inherits="syc.Sale.Report.油管结算清单" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
            <div class="hooo">
        <div id="wintop" class="wintop"><span lang="zh-cn"><u>油管结算清单</u></span></div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel" Height="36px" >
  
        <table>
        <tr id="row2" runat="server">
        <td>
        年份:
        </td>
        <td>
        <asp:DropDownList ID="DList_year" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DList_year_SelectedIndexChanged">
            <asp:ListItem>2009</asp:ListItem>
            <asp:ListItem>2010</asp:ListItem>
            <asp:ListItem>2011</asp:ListItem>
            <asp:ListItem>2012</asp:ListItem>
            <asp:ListItem>2013</asp:ListItem>
            <asp:ListItem>2014</asp:ListItem>
            <asp:ListItem>2015</asp:ListItem>
            <asp:ListItem></asp:ListItem>
        </asp:DropDownList>
        </td>
        <td>
        行政月：
        </asp:DropDownList>
        </td>
        <td>
        <asp:DropDownList ID="DList_month" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DList_month_SelectedIndexChanged">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
        </asp:DropDownList>
        </td>
        </tr>
        </table>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2" >
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt" Visible="True"></asp:Label>
        </asp:Panel> 
    
        <h1 style="text-align: center;">
            <%=year %>年<%=month %>月份油管结算清单</h1>
        <div align="center">    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" style="text-align: center" BorderColor="Black" 
                BorderStyle="Solid" BorderWidth="2px">
                 <RowStyle Height="40px" />
                 <HeaderStyle Height="40px" />                
            <Columns>
                <asp:TemplateField HeaderText="序号" InsertVisible="False">
                    <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" Width="5%" />
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# this.GridView1.PageIndex * this.GridView1.PageSize + this.GridView1.Rows.Count + 1%>'/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="日期" DataFormatString="{0:d}" HeaderText="日期" 
                    SortExpression="日期" />
                <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称" />
                <asp:BoundField DataField="品名" HeaderText="品名" SortExpression="品名" />
                <asp:BoundField DataField="钢级" HeaderText="钢级" SortExpression="钢级" />
                <asp:BoundField DataField="总件数" HeaderText="总件数" SortExpression="总件数" />
                <asp:BoundField DataField="总支数" HeaderText="总支数" SortExpression="总支数" />
                <asp:BoundField DataField="总重量" HeaderText="总重量" SortExpression="总重量" />
                <asp:BoundField DataField="总长度" HeaderText="总长度" SortExpression="总长度" />
                <asp:BoundField DataField="车数" HeaderText="车数" SortExpression="车数" />
            </Columns>
        </asp:GridView>
        </div>
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
            SelectCommand="SELECT * FROM [某月油管结算清单]"></asp:SqlDataSource>
    
    </div>
    </form>
<script>parent.hidesubmenu(true);</script>
</body>
</html>
